/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
 *
 */

import { hvigorCore } from '@ohos/hvigor';

import { BuildDirConst } from '../const/build-directory-const.js';

/**
 * 获取默认构建路径
 *
 * @return {string} bulid
 */
export function getBuildRoot(): string {
  let buildRoot = hvigorCore.getExtraConfig().get('buildRoot');
  if (!buildRoot) {
    buildRoot = BuildDirConst.BUILD_ROOT;
  }
  return buildRoot;
}
